package com.mjf.operator;

public class AssignOperator {
    public static void main(String[] args) {

        char a = 97;
        // byte/short/char 进行运算时会隐式转换为 int
        System.out.println(a + 1);  // 98

        // 复合赋值运算符会进行类型转换
        // 等价 a = (byte)(a + 1)
        a += 1;
        System.out.println(a);  // b
        // 等价 a = (byte)(a+1)
        System.out.println(++a);    // c

    }
}
